<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<p th:if="${hasResult}">找到了</p>
<p th:if="${!hasResult}">爬</p>
</body>
</html>